package com.atguigu.gmall.order.handler;

import com.atguigu.gmall.order.dto.OrderSubmitDto;
import lombok.Data;

@Data
public abstract class AbstractOrderHandler {

    private AbstractOrderHandler next ;     // 指定当前这个步骤的下一个步骤

    public abstract int sort() ;            // 对步骤进行排序

    public abstract String process(OrderSubmitDto orderSubmitDto , String tradeNo) ;

}
